/**
 * Created by wanghuan on 2017/4/9.
 */

/*==========================pto 相关接口==============================*/

import Ajax from '../../apiAjax';

export  default {
  state:{
    manualData:{},//pto列表,

  },
  mutations:{
    setCommonStateData(state,{key,data}){
      state[key] = data;
    }
  },
  actions:{
    getManualData({commit},paramData){
      return new Promise((resolve, reject) => {
        Ajax({
          url:'/time/manualcard/list',
          data:paramData,
          success:function (data) {
            commit('setCommonStateData',{key:'manualData',data:data.data});
            resolve(data);
          }
        })
      })
    },
  },
  getters: {
    manualData:(state, getters)=> {
      return state.manualData;
    },
  }
}
